package com.atguigu.eduservice.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum SexEnum {

    MAN(0, "男"),  
    WOMAM(1, "女");

    @EnumValue
    //标记响应json值
    private final int code;
    //标记响应json值
    @JsonValue    
    private final String name;

    SexEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }


}